package com.sky.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.sky.common.EnumDeserializer;
import com.sky.common.EnumSerializer;
import com.sky.enumeration.SetmealStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SetmealEntity implements Serializable {
    private Long id;
    private Long categoryId;
    private String name;
    private Long price;
    @JSONField(serializeUsing = EnumSerializer.class, deserializeUsing = EnumDeserializer.class)
    private SetmealStatusEnum status;
    private String description;
    private String image;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Long createUser;
    private Long updateUser;
}
